<?PHP
$link = mysql_connect("localhost","root","");
mysql_query ("set character_set_client='utf8'"); 
mysql_query ("set character_set_results='utf8'"); 
mysql_query ("set collation_connection='utf8_general_ci'"); 
mysql_select_db("question");

$query = "SELECT * FROM huongtest";
$results = mysql_query($query)or die(mysql_error());

$dataCauHoi = "";
$dataDapAnA = "";
$dataDapAnB = "";
$dataDapAnC = "";
$dataDapAnD = "";
$dataDapAnDung = "";
while($line = mysql_fetch_assoc($results)) {
	 $dataCauHoi .=$line["CauHoi"]."\n";
	 $dataDapAnA .=$line["DapAnA"]."\n";
	 $dataDapAnB .=$line["DapAnB"]."\n";
	 $dataDapAnC .=$line["DapAnC"]."\n";
	 $dataDapAnD .=$line["DapAnD"]."\n";
	 $dataDapAnDung .=$line["DapAnDung"]."\n";


}

echo($dataCauHoi);
echo($dataDapAnA);
echo($dataDapAnB);
echo($dataDapAnC);
echo($dataDapAnD);
echo($dataDapAnDung);

mysql_close($link);

?>